﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.PB
{
    /// <summary>
    /// PB_DeliveryNotice
    /// </summary>
    [Table("PB_DeliveryNotice")]
    public partial class PB_DeliveryNotice
    {

        /// <summary>
        /// Id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 通知人ID
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 通知人姓名
        /// </summary>
        public String CreatorName { get; set; }

        /// <summary>
        /// 项目ID
        /// </summary>
        public String ProjectId { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        public String ProjectName { get; set; }

        /// <summary>
        /// 送货地址/回货得时候存储的是回货仓库
        /// </summary>
        public String Address { get; set; }

        /// <summary>
        /// 发货要求
        /// </summary>
        public String Remark { get; set; }

        /// <summary>
        /// 下发日期 
        /// </summary>
        public DateTime? IssueDate { get; set; }

        /// <summary>
        /// 合同编号
        /// </summary>
        public String ContractNo { get; set; }

        /// <summary>
        /// 摘要
        /// </summary>
        public String Abstract { get; set; }

        /// <summary>
        /// 业务类型名称
        /// </summary>
        public String TypeId { get; set; }

        /// <summary>
        /// 供应商
        /// </summary>
        public String SupplierName { get; set; }

        /// <summary>
        /// 签订单位
        /// </summary>
        public String SignUnitName { get; set; }

        /// <summary>
        /// 合作单位
        /// </summary>
        public String CooperativeUnitName { get; set; }

        /// <summary>
        /// 购销单位
        /// </summary>
        public String SaleUnitName { get; set; }

        /// <summary>
        /// 发货状态
        /// </summary>
        public Int32? ShipmentStatus { get; set; }

        /// <summary>
        /// 审核状态
        /// </summary>
        public Int32? AuditStatus { get; set; }

        /// <summary>
        /// 删除状态：0=未删除；1＝已删除；
        /// </summary>
        public Boolean? Deleted { get; set; }
        /// <summary>
        /// 供货商ID
        /// </summary>
        public string SupplierId { get; set; }
        /// <summary>
        /// 签订单位ID
        /// </summary>
        public string SignUnitId { get; set; }
        /// <summary>
        /// 合作单位ID
        /// </summary>
        public string CooperativeUnitId { get; set; }
        /// <summary>
        /// 销售单位ID
        /// </summary>
        public string SaleUnitId { get; set; }
        /// <summary>
        /// 收货人名字
        /// </summary>
        public string ConsigneeName { get; set; }
        /// <summary>
        /// 收货人ID
        /// </summary>
        public string ConsigneeId { get; set; }
        /// <summary>
        /// 收货人电话
        /// </summary>
        public string ConsigneeTelephone { get; set; }
        /// <summary>
        /// 类型: 1.发货通知 2.回货通知
        /// </summary>
        public int Type { get; set; }
        /// <summary>
        /// 回货吨位
        /// </summary>
        public double? ReturnTonnage { get; set; }

        /// <summary>
        /// 更新日期  对当前表进行 修改 审核操作时更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 延时说明
        /// </summary>
        public string DelayDescription { get; set; }

       /// <summary>
       /// 延时日期
       /// </summary>
        public DateTime? DelayTime { get; set; }

        /// <summary>
        /// 发货通知单增加运费详情
        /// </summary>
        public string FreightDetails { get; set; }
        /// <summary>
        /// 关联工作流
        /// </summary>
        public string WorkFlow { get; set; }

        /// <summary>
        /// 二维码
        /// </summary>
        public string QrCode { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }

        /// <summary>
        /// 业务负责人
        /// </summary>
        public string BusinessLeader { get; set; }
        /// <summary>
        /// 跟单联系人
        /// </summary>
        public string DocumentaryContact { get; set; }
        /// <summary>
        /// 甲方收货人
        /// </summary>
        public string ConsigneeOfParty { get; set; }
        /// <summary>
        /// 钉钉审批日期
        /// </summary>
        public DateTime? ApprovalTime { get; set; }

        /// <summary>
        /// 工厂Id
        /// </summary>
        public string DeptId { get; set; }
    }
}